package com.itheima.article.service;

import com.itheima.article.dto.ArticleHomeDto;
import com.itheima.article.dto.ArticleInfoDto;
import com.itheima.article.pojo.ApArticle;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.common.vo.PageResultVo;

import java.util.Map;

/**
 * @description <p>已发布的文章信息 业务接口</p>
 *
 * @version 1.0
 * @package com.itheima.article.service
 */
public interface ApArticleService extends IService<ApArticle> {

    /**
     * 同步自媒体文章到文章微服
     * @param dto
     * @return
     */
    boolean saveArticleInfo(ArticleInfoDto dto);

    /**
     * app端文章分页查询
     * @param dto
     * @param loadType
     * @return
     */
    PageResultVo<ApArticle> pageList(ArticleHomeDto dto, int loadType);

    /**
     * 查询文章信息详情
     * @param map
     * @return
     */
    Map<String, Object> loadArticleInfo(Map<String, String> map);
}
